using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace <Application>.<Presentation>
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }
        
        private void ExitToolsStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }
                
        private void CascadeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.Cascade);
        }

        private void TileVerticalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.TileVertical);
        }

        private void TileHorizontalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.TileHorizontal);
        }

        private void CloseAllToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form childForm in MdiChildren)
            {
                childForm.Close();
            }
        }

    <If Loop>
	<IsFKey>
	<And>
	<IsNotComboBox (Db)>
        private void <ROwnerU><RTableU><OwnerU><TableU>ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Cursor = System.Windows.Forms.Cursors.WaitCursor;
            <Application>.<Presentation>.frm<ROwnerU>_<RTableU> form_frm<ROwnerU>_<RTableU> = new <Application>.<Presentation>.frm<ROwnerU>_<RTableU>();
            form_frm<ROwnerU>_<RTableU>.MdiParent = this;
            form_frm<ROwnerU>_<RTableU>.Show();
            this.Cursor = System.Windows.Forms.Cursors.Default;
        }

    </If Loop>        
    }
}


